package tools;

public enum Direction {
    LEFT(-1, 0),
    RIGHT(1, 0),
    UP(0, -1),
    DOWN(0, 1),
    UP_LEFT(-Math.sqrt(2) / 2, -Math.sqrt(2) / 2),
    UP_RIGHT(Math.sqrt(2) / 2, -Math.sqrt(2) / 2),
    DOWN_LEFT(-Math.sqrt(2) / 2, Math.sqrt(2) / 2),
    DOWN_RIGHT(Math.sqrt(2) / 2, Math.sqrt(2) / 2);

    public final double X;
    public final double Y;

    private Direction(double x, double y) {
        X = x;
        Y = y;
    }
}
